-- GENERATED SPELL FOR [Mo'arg Doomsmith] --


function spell0_16944(pUnit, Event) --@Doomsaw,Self--
pUnit:FullCastSpellOnTarget(36200,pUnit)
pUnit:RegisterEvent('Sorts_16944', 1300, 1)
end

function Sorts_16944(pUnit, Event)
local choix_sorts_16944 = math.random(0, 0)
if choix_sorts_16944 == 0 then
pUnit:RegisterEvent('spell0_16944', 1, 1)
end
end

function mob16944_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16944', math.random(1500, 3000), 1)
end

function mob16944_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16944_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16944_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16944, 1, 'mob16944_Action')
RegisterUnitEvent(16944, 2, 'mob16944_Leave')
RegisterUnitEvent(16944, 3, 'mob16944_Kill')
RegisterUnitEvent(16944, 4, 'mob16944_Die')
